package entity

type Control struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	FrameCode string `gorm:"column:frame_code;type:VARCHAR(255)" json:"frame_code"`

	FirmwareId int64 `gorm:"column:firmware_id;type:BIGINT" json:"firmware_id"`

	FirmwareVersion string `gorm:"column:firmware_version;type:VARCHAR(255)" json:"firmware_version"`

	SnCode string `gorm:"column:sn_code;type:VARCHAR(255)" json:"sn_code"`

	Mac string `gorm:"column:mac;type:VARCHAR(255)" json:"mac"`

	Imei string `gorm:"column:imei;type:VARCHAR(255)" json:"imei"`

	Iccid string `gorm:"column:iccid;type:VARCHAR(255)" json:"iccid"`

	Imsi string `gorm:"column:imsi;type:VARCHAR(255)" json:"imsi"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *Control) TableName() string {
	return "controls"
}
